<?php
/**
 * 积分
 *
 * by abc.com 多用户商城
 *
 *
 */
//by abc.com
//use Shopnc\Tpl;

defined('InShopNC') or exit('Access Invalid!');
class pointsControl extends mobileHomeControl{
	public function __construct() {
        parent::__construct();
    }
	function goodsListOp(){
		 $lower_limit = intval($_POST['lower_limit']);
        $up_limit = intval($_POST['up_limit']);
        
        $model = Model("goods");
        $where = "is_trans = 1";
        if($up_limit > 0){
            $where .= " AND trans_num >= $lower_limit AND trans_num < $up_limit";
        }
        if($lower_limit==-1){
            $where .= " AND trans_num >= $lower_limit";
        }
        $items = $model->field("*")->where($where)->select();
        output_data($items);
	}
}
?>